<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>W3c导航条</title>
    <link rel="stylesheet" href="../css/reset.css">
    <style>
        .nav {
            width: 1210px;
            height: 48px;
            line-height: 48px;
            background-color: #e8e7e3;
            margin: 100px auto;
            /* 设置成弹性盒子 */
            display: flex;
        }
        .nav li {
            flex-grow: 1;
        }
        .nav a {
            display: block;
            color: #808080;
            font-size: 18px;
            text-decoration: none;
            text-align: center;
        }
        .nav a:hover {
            background-color: #636363;
            color: white;
        }
    </style>
</head>
<body>
    <ul class="nav">
        <li><a href="#">HTML/CSS</a></li>
        <li><a href="#">Browser Side</a></li>
        <li><a href="#">Server Side</a></li>
        <li><a href="#"> Programming</a></li>
        <li><a href="#">XML</a></li>
        <li><a href="#">Web Building</a></li>
        <li><a href="#">Reference</a></li>
    </ul>
</body>
</html>